package com.woniu.common.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class OrderDto {

    private Long orderNum;
    /**
     * 用户手机号码
     */
    private String userTelephone;

    /**
     * 商品资费 如3元/月
     */
    private BigDecimal itemCost;

    /**
     * 来源渠道id
     */
    private Integer sourceId;

    /**
     * 下单时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 支付方式id
     */
    private Integer orderPayId;

    /**
     * 订单业务类型
     */
    private Integer orderBusinessTypeId;

    /**
     * 订单金额
     */
    private BigDecimal totalPrice;

    /**
     * 省市
     */
    private String province;

    /**
     * 收货人地址(物流类订单)
     */
    private Integer addressId;

    /**
     * 支付金额
     */
    private BigDecimal payPrice;

    /**
     * 是否开具发票
     */
    private Integer isInvoice;

    /**
     * 收件人
     */
    private String receiver;

    /**
     * 收件人电话
     */
    private String receiverPhone;

    private String idStr;


    /**
     * 子订单id
     */
    private Long id;
    private String childIdStr;
    /**
     * 子订单商品名
     */
    private String itemName;
    private List<String> buyTimeList;
    private Integer typeId;
    private Integer status;
    private String sourceName;

    private Integer integral;

}
